<?
require("../common/auth.php");
$account= mysql_real_escape_string($_REQUEST['account']);
$sel="select dname,cname from pft_member where account='".$account."' limit 1";
//echo $sel;
$GLOBALS['le']->query($sel);
$GLOBALS['le']->fetch_assoc();
$dname=$GLOBALS['le']->f("dname");
if(empty($dname)) {
    echo $GLOBALS['le']->f('cname');
} else {
    echo $dname;
}
?>